<template>
    <div>
        {{ count }}
    </div>
    <button @click="countadd">count++</button>
    <button @click="recount">recount</button>
</template>

<script>
import { ref } from 'vue'

export default {
    setup() {
        let count = ref(0)

        function countadd() {
            count.value++;
        }
        function recount() {
            count.value = 0;
        }
        return {
            count,
            countadd,
            recount
        }
    },

}

</script>

<style></style>